/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.line.pipe.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.line.constant.enums.ParkLineSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 管线
 *
 * @author pig
 * @date 2024-02-21 21:45:43
 */
@Data
@TableName(value = "line_pipeline", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "管线")
public class LinePipelineEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 管线编码
	*/
    @Schema(description="管线编码")
    private String lineCode;

	/**
	* 起始点号
	*/
    @Schema(description="起始点号")
    private String startNum;

	/**
	* 终止点号
	*/
    @Schema(description="终止点号")
    private String endNum;

	/**
	* 起点埋深
	*/
    @Schema(description="起点埋深")
    private BigDecimal startAltitude;

	/**
	* 终点埋深
	*/
    @Schema(description="终点埋深")
    private BigDecimal endAltitude;

	/**
	* 起点高程
	*/
    @Schema(description="起点高程")
    private BigDecimal startElevation;

	/**
	* 终点高程
	*/
    @Schema(description="终点高程")
    private BigDecimal endElevation;

	/**
	* 埋设方式   监测类别 1.废气 2.废水 3.VOCs
	*/
    @Schema(description="埋设方式   监测类别 1.废气 2.废水 3.VOCs")
    private String embedType;

	/**
	* 管线材质   数据状态 1.正常 2.需修约 3.无效数据
	*/
    @Schema(description="管线材质   数据状态 1.正常 2.需修约 3.无效数据")
    private String lineMaterial;

	/**
	* 管径
	*/
    @Schema(description="管径")
    private BigDecimal lineRadius;

	/**
	* 保护材料
	*/
    @Schema(description="保护材料")
    private String protectMaterial;

	/**
	* 管段间距
	*/
    @Schema(description="管段间距")
    private BigDecimal pipeInterval;

	/**
	* 权属单位
	*/
    @Schema(description="权属单位")
    private String belongUnit;

	/**
	* 建设年代
	*/
    @Schema(description="建设年代")
    private Integer buildYear;

	/**
	* 道路名称
	*/
    @Schema(description="道路名称")
    private String roadName;

	/**
	* 流向码
	*/
    @Schema(description="流向码")
    private String flowDirectionCode;

	/**
	* 压力
	*/
    @Schema(description="压力")
    private String pressure;

	/**
	* 电压
	*/
    @Schema(description="电压")
    private String volt;

	/**
	* 电缆条数
	*/
    @Schema(description="电缆条数")
    private Integer cableNum;

	/**
	* 总孔数
	*/
    @Schema(description="总孔数")
    private Integer totalHoleNum;

	/**
	* 已用孔数
	*/
    @Schema(description="已用孔数")
    private Integer useHoleNum;

	/**
	* 孔径
	*/
    @Schema(description="孔径")
    private BigDecimal holeRadius;

	/**
	* 载体
	*/
    @Schema(description="载体")
    private String carrier;

	/**
	* 多媒体
	*/
    @Schema(description="多媒体")
    private String media;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remarks;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

    public String getEmbedTypeStr() {
    	return DictResolver.getItemLabelByValue(ParkLineSysDictEnum.line_embed_type, this.getEmbedType());
	}

	public String getLineMaterialStr() {
    	return DictResolver.getItemLabelByValue(ParkLineSysDictEnum.line_material_type, this.getLineMaterial());
	}

}
